<?php /* Smarty version 2.6.16, created on 2013-09-11 12:48:32
         compiled from d:%5Cwww%5Cclient%5Cgetbids/templates/default//modules/jobs/myjobleads.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_start'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php echo '<link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/dashboard.css"><link rel="stylesheet" type="text/css" href="';  echo $this->_tpl_vars['siteroot'];  echo '/templates/default/style/find_job_list.css"><script type="text/javascript" src="';  echo $this->_tpl_vars['siteroot'];  echo '/greybox/greybox.js"></script><link href="';  echo $this->_tpl_vars['siteroot'];  echo '/greybox/greybox.css" rel="stylesheet" type="text/css" media="all" />'; ?>

<?php echo '
<script type="text/javascript">
function detailUser(uid)
{
	var GB_ANIMATION = true;
	var url= SITEROOT + \'/leads/userdetail?uid=\' + uid;
	GB_show("",url,500,500);
	return false;
}
</script>
'; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['header_end'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<section class="middle_portion">
	<section class="inner_head">Dashboard</section>
    <section class="inner_containstart">
    	<!-- dashboard Left Content Start -->
        	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['cms_left_content'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        <!-- dashboard Left Content End -->
        <!-- dashboard Right Content Start -->
        	<section class="dash_right">
            <section class="title_box">
            	<h4><span class="lF"><a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/myjobs/">My Job</a> >> Interested Users</span><span class="rF"> <a href="<?php echo $this->_tpl_vars['siteroot']; ?>
/jobs/myjobs/" class="rF" >Back</a></span><section class="clear"></section></h4>
            	 <section class="clear"></section>
                 
                </section>                             
				<?php if ($this->_tpl_vars['msg']): ?> <span style="padding:10px"><?php echo $this->_tpl_vars['msg']; ?>
 </span><?php endif; ?>
                <section class="mainbox_findjobs">
                
                <form method="POST" name="frmtradesuserlisting" id="frmtradesuserlisting" >
				<section class="jobleads_manag_box joblistmain">
                	<dl>
                    	<dt class="col11">Suppliers name</dt>
                         <dt class="col22">Industry / Job type</dt>
                        <dt class="col22">Rating</dt>
                        <dt class="col3">Message</dt>
                        <dt class="col44">Action</dt>
                        <section class="clear"></section>
                    </dl>
                    <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['jobsArray']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > 0 ? 0 : $this->_sections['i']['loop']-1;
if ($this->_sections['i']['show']) {
    $this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if ($this->_sections['i']['total'] == 0)
        $this->_sections['i']['show'] = false;
} else
    $this->_sections['i']['total'] = 0;
if ($this->_sections['i']['show']):

            for ($this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 $this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 $this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
                    <dl>
                    	<dd class="col11"> <a href="#" onclick="detailUser(<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['userid']; ?>
)"><?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['first_name']; ?>
 <?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['last_name']; ?>
 </a></dd>
                         <dd class="col22"><?php echo $this->_tpl_vars['cats']; ?>
</dd>
                        <dd class="col22"> 
                        	<!--<img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/y_star.png" alt="" />
                            <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/y_star.png" alt="" />
                            <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/y_star.png" alt="" />
                            <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/y_star.png" alt="" />
                            <img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/y_star.png" alt="" />-->
                            
                            <?php unset($this->_sections['j']);
$this->_sections['j']['name'] = 'j';
$this->_sections['j']['loop'] = is_array($_loop=$this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['total_rating']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['j']['start'] = (int)0;
$this->_sections['j']['max'] = (int)$this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['total_rating'];
$this->_sections['j']['show'] = true;
if ($this->_sections['j']['max'] < 0)
    $this->_sections['j']['max'] = $this->_sections['j']['loop'];
$this->_sections['j']['step'] = 1;
if ($this->_sections['j']['start'] < 0)
    $this->_sections['j']['start'] = max($this->_sections['j']['step'] > 0 ? 0 : -1, $this->_sections['j']['loop'] + $this->_sections['j']['start']);
else
    $this->_sections['j']['start'] = min($this->_sections['j']['start'], $this->_sections['j']['step'] > 0 ? $this->_sections['j']['loop'] : $this->_sections['j']['loop']-1);
if ($this->_sections['j']['show']) {
    $this->_sections['j']['total'] = min(ceil(($this->_sections['j']['step'] > 0 ? $this->_sections['j']['loop'] - $this->_sections['j']['start'] : $this->_sections['j']['start']+1)/abs($this->_sections['j']['step'])), $this->_sections['j']['max']);
    if ($this->_sections['j']['total'] == 0)
        $this->_sections['j']['show'] = false;
} else
    $this->_sections['j']['total'] = 0;
if ($this->_sections['j']['show']):

            for ($this->_sections['j']['index'] = $this->_sections['j']['start'], $this->_sections['j']['iteration'] = 1;
                 $this->_sections['j']['iteration'] <= $this->_sections['j']['total'];
                 $this->_sections['j']['index'] += $this->_sections['j']['step'], $this->_sections['j']['iteration']++):
$this->_sections['j']['rownum'] = $this->_sections['j']['iteration'];
$this->_sections['j']['index_prev'] = $this->_sections['j']['index'] - $this->_sections['j']['step'];
$this->_sections['j']['index_next'] = $this->_sections['j']['index'] + $this->_sections['j']['step'];
$this->_sections['j']['first']      = ($this->_sections['j']['iteration'] == 1);
$this->_sections['j']['last']       = ($this->_sections['j']['iteration'] == $this->_sections['j']['total']);
?>
                                <span class=""><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/y_star.png" alt=""  class=""/></span>
                            <?php endfor; endif; ?>
                            
                            <?php unset($this->_sections['k']);
$this->_sections['k']['name'] = 'k';
$this->_sections['k']['loop'] = is_array($_loop=$this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['remaining_rating']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['k']['start'] = (int)0;
$this->_sections['k']['max'] = (int)$this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['remaining_rating'];
$this->_sections['k']['show'] = true;
if ($this->_sections['k']['max'] < 0)
    $this->_sections['k']['max'] = $this->_sections['k']['loop'];
$this->_sections['k']['step'] = 1;
if ($this->_sections['k']['start'] < 0)
    $this->_sections['k']['start'] = max($this->_sections['k']['step'] > 0 ? 0 : -1, $this->_sections['k']['loop'] + $this->_sections['k']['start']);
else
    $this->_sections['k']['start'] = min($this->_sections['k']['start'], $this->_sections['k']['step'] > 0 ? $this->_sections['k']['loop'] : $this->_sections['k']['loop']-1);
if ($this->_sections['k']['show']) {
    $this->_sections['k']['total'] = min(ceil(($this->_sections['k']['step'] > 0 ? $this->_sections['k']['loop'] - $this->_sections['k']['start'] : $this->_sections['k']['start']+1)/abs($this->_sections['k']['step'])), $this->_sections['k']['max']);
    if ($this->_sections['k']['total'] == 0)
        $this->_sections['k']['show'] = false;
} else
    $this->_sections['k']['total'] = 0;
if ($this->_sections['k']['show']):

            for ($this->_sections['k']['index'] = $this->_sections['k']['start'], $this->_sections['k']['iteration'] = 1;
                 $this->_sections['k']['iteration'] <= $this->_sections['k']['total'];
                 $this->_sections['k']['index'] += $this->_sections['k']['step'], $this->_sections['k']['iteration']++):
$this->_sections['k']['rownum'] = $this->_sections['k']['iteration'];
$this->_sections['k']['index_prev'] = $this->_sections['k']['index'] - $this->_sections['k']['step'];
$this->_sections['k']['index_next'] = $this->_sections['k']['index'] + $this->_sections['k']['step'];
$this->_sections['k']['first']      = ($this->_sections['k']['iteration'] == 1);
$this->_sections['k']['last']       = ($this->_sections['k']['iteration'] == $this->_sections['k']['total']);
?>
                                <span class="star_1"><img src="<?php echo $this->_tpl_vars['siteroot']; ?>
/templates/default/images/g_star.png" alt=""  class=""/></span>
                            <?php endfor; endif; ?>
                        
                        </dd>
                        <dd class="col3">
                        	<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['message']; ?>
 
                        </dd>
                        <dd class="col44">
                        	<?php if ($this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['status'] == 'Open'): ?>
                        		<input type="submit" class="btn" name="accept[<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['id']; ?>
]" value="Accept" onclick="javascript:return confirm('Are you sure do you want to accept this user?');" />&nbsp;<input type="submit" class="btn" name="decline[<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['id']; ?>
]" value="Decline" onclick="javascript:return confirm('Are you sure do you want to decline this user?');" />
                            <?php endif; ?>   
                            <?php if ($this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['status'] == 'Accept'): ?>                
                            	<input type="button" class="btn" name="accept[<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['id']; ?>
]" value="Accepted" style="cursor:default"  />
                            <?php endif; ?>   
                            <?php if ($this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['status'] == 'Decline'): ?>                
                            	<input type="button" class="btn" name="accept[<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['id']; ?>
]" value="Declined" style="cursor:default"   />
                            <?php endif; ?>   
                             <?php if ($this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['status'] == 'Completed'): ?>                
                            	<input type="button" class="btn" name="accept[<?php echo $this->_tpl_vars['jobsArray'][$this->_sections['i']['index']]['id']; ?>
]" value="Completed" style="cursor:default"   />
                            <?php endif; ?>                                                
                         </dd>
                        <section class="clear"></section>
                    </dl>
                    <?php endfor; else: ?>
                    	<div class="error" style="padding:10px;text-align:center;">Oops, Sorry there are no user buy lead.</div>
                    <?php endif; ?>
                    <?php if ($this->_tpl_vars['pagenation']): ?>
                            <section class="pagna">
                            <?php echo $this->_tpl_vars['pagenation']; ?>

                            </section>
                        <?php endif; ?>	

                        
                         <section class="clear"></section>
                </section>   
                 <section class="clear"></section>
                 <section class="bgimg_shadow"></section>
                </form>
                
                 	<section class="clear"></section>
                </section>

            </section>
        <!-- dashboard Right Content End -->
        	<section class="clear"></section>
    </section>
</section>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>